using System;

namespace Framework.Library.Core.Utils.Miscellaneous
{
    public static class ParameterUtils
    {
        public static void ValidateStringNotNullOrEmpty(string value, string parameterName)
        {
            if (value == null)
                throw new ArgumentNullException(parameterName);

            if (value.Length == 0)
                throw new ArgumentException(string.Format("{0} parameter must not be empty", parameterName),
                                            parameterName);
        }
    }
}